<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>for 渲染对象</title>
</head>
<body>
<div id="app">
    <div>{{ person }}</div>
    <br>

    <ol>
        <li>{{ person.name }}</li>
        <li>{{ person.age }}</li>
        <li>{{ person.gender }}</li>
    </ol>
    <br>

    <ul>
        <li v-for="item in person">{{ item }}</li>
    </ul>
    <ul>
        <li v-for="(value, key) in person">{{ key }}: {{ value }}</li>
    </ul>

    <ul style="list-style-type: None;padding-inline-start: 0px;">
        <li v-for="(value, key, index) in person">{{ index }} {{ key }}: {{ value }}</li>
    </ul>
</div>

<script src="../../../../../js/vue.global.js"></script>
<script>
    const app = Vue.createApp({
        data() {
            return {
                person: {
                    name: "abcque",
                    age: 18,
                    gender: "M",
                }
            }
        },
        methods: {}
    })

    app.mount("#app")
</script>
</body>
</html>